Optimal. Leaf size=150 \[ \frac {x \sqrt {c+d x^2}}{b^2}-\frac {x^3 \sqrt {c+d x^2}}{2 b \left (a+b x^2\right )}-\frac {\sqrt {a} (3 b c-4 a d) \tan ^{-1}\left (\frac {\sqrt {b c-a d} x}{\sqrt {a} \sqrt {c+d x^2}}\right )}{2 b^3 \sqrt {b c-a d}}+\frac {(b c-4 a d) \tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{2 b^3 \sqrt {d}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 150, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.292, Rules used = {478, 596, 537,
223, 212, 385, 211} \begin {gather*} -\frac {\sqrt {a} (3 b c-4 a d) \text {ArcTan}\left (\frac {x \sqrt {b c-a d}}{\sqrt {a} \sqrt {c+d x^2}}\right )}{2 b^3 \sqrt {b c-a d}}+\frac {(b c-4 a d) \tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{2 b^3 \sqrt {d}}-\frac {x^3 \sqrt {c+d x^2}}{2 b \left (a+b x^2\right )}+\frac {x \sqrt {c+d x^2}}{b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 212
Rule 223
Rule 385
Rule 478
Rule 537
Rule 596
Rubi steps
\begin {align*} \int \frac {x^4 \sqrt {c+d x^2}}{\left (a+b x^2\right )^2} \, dx &=-\frac {x^3 \sqrt {c+d x^2}}{2 b \left (a+b x^2\right )}+\frac {\int \frac {x^2 \left (3 c+4 d x^2\right )}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx}{2 b}\\ &=\frac {x \sqrt {c+d x^2}}{b^2}-\frac {x^3 \sqrt {c+d x^2}}{2 b \left (a+b x^2\right )}-\frac {\int \frac {4 a c d-2 d (b c-4 a d) x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx}{4 b^2 d}\\ &=\frac {x \sqrt {c+d x^2}}{b^2}-\frac {x^3 \sqrt {c+d x^2}}{2 b \left (a+b x^2\right )}+\frac {(b c-4 a d) \int \frac {1}{\sqrt {c+d x^2}} \, dx}{2 b^3}-\frac {(a (3 b c-4 a d)) \int \frac {1}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx}{2 b^3}\\ &=\frac {x \sqrt {c+d x^2}}{b^2}-\frac {x^3 \sqrt {c+d x^2}}{2 b \left (a+b x^2\right )}+\frac {(b c-4 a d) \text {Subst}\left (\int \frac {1}{1-d x^2} \, dx,x,\frac {x}{\sqrt {c+d x^2}}\right )}{2 b^3}-\frac {(a (3 b c-4 a d)) \text {Subst}\left (\int \frac {1}{a-(-b c+a d) x^2} \, dx,x,\frac {x}{\sqrt {c+d x^2}}\right )}{2 b^3}\\ &=\frac {x \sqrt {c+d x^2}}{b^2}-\frac {x^3 \sqrt {c+d x^2}}{2 b \left (a+b x^2\right )}-\frac {\sqrt {a} (3 b c-4 a d) \tan ^{-1}\left (\frac {\sqrt {b c-a d} x}{\sqrt {a} \sqrt {c+d x^2}}\right )}{2 b^3 \sqrt {b c-a d}}+\frac {(b c-4 a d) \tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{2 b^3 \sqrt {d}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.72, size = 154, normalized size = 1.03 \begin {gather*} \frac {\frac {b x \left (2 a+b x^2\right ) \sqrt {c+d x^2}}{a+b x^2}+\frac {\sqrt {a} (3 b c-4 a d) \tan ^{-1}\left (\frac {a \sqrt {d}+b x \left (\sqrt {d} x-\sqrt {c+d x^2}\right )}{\sqrt {a} \sqrt {b c-a d}}\right )}{\sqrt {b c-a d}}+\frac {(-b c+4 a d) \log \left (-\sqrt {d} x+\sqrt {c+d x^2}\right )}{\sqrt {d}}}{2 b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(2001\) vs.
\(2(124)=248\).
time = 0.14, size = 2002, normalized size = 13.35
method | result | size |
risch | \(\text {Expression too large to display}\) | \(1735\) |
default | \(\text {Expression too large to display}\) | \(2002\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.88, size = 1002, normalized size = 6.68 \begin {gather*} \left [-\frac {2 \, {\left (a b c - 4 \, a^{2} d + {\left (b^{2} c - 4 \, a b d\right )} x^{2}\right )} \sqrt {d} \log \left (-2 \, d x^{2} + 2 \, \sqrt {d x^{2} + c} \sqrt {d} x - c\right ) + {\left (3 \, a b c d - 4 \, a^{2} d^{2} + {\left (3 \, b^{2} c d - 4 \, a b d^{2}\right )} x^{2}\right )} \sqrt {-\frac {a}{b c - a d}} \log \left (\frac {{\left (b^{2} c^{2} - 8 \, a b c d + 8 \, a^{2} d^{2}\right )} x^{4} + a^{2} c^{2} - 2 \, {\left (3 \, a b c^{2} - 4 \, a^{2} c d\right )} x^{2} + 4 \, {\left ({\left (b^{2} c^{2} - 3 \, a b c d + 2 \, a^{2} d^{2}\right )} x^{3} - {\left (a b c^{2} - a^{2} c d\right )} x\right )} \sqrt {d x^{2} + c} \sqrt {-\frac {a}{b c - a d}}}{b^{2} x^{4} + 2 \, a b x^{2} + a^{2}}\right ) - 4 \, {\left (b^{2} d x^{3} + 2 \, a b d x\right )} \sqrt {d x^{2} + c}}{8 \, {\left (b^{4} d x^{2} + a b^{3} d\right )}}, -\frac {4 \, {\left (a b c - 4 \, a^{2} d + {\left (b^{2} c - 4 \, a b d\right )} x^{2}\right )} \sqrt {-d} \arctan \left (\frac {\sqrt {-d} x}{\sqrt {d x^{2} + c}}\right ) + {\left (3 \, a b c d - 4 \, a^{2} d^{2} + {\left (3 \, b^{2} c d - 4 \, a b d^{2}\right )} x^{2}\right )} \sqrt {-\frac {a}{b c - a d}} \log \left (\frac {{\left (b^{2} c^{2} - 8 \, a b c d + 8 \, a^{2} d^{2}\right )} x^{4} + a^{2} c^{2} - 2 \, {\left (3 \, a b c^{2} - 4 \, a^{2} c d\right )} x^{2} + 4 \, {\left ({\left (b^{2} c^{2} - 3 \, a b c d + 2 \, a^{2} d^{2}\right )} x^{3} - {\left (a b c^{2} - a^{2} c d\right )} x\right )} \sqrt {d x^{2} + c} \sqrt {-\frac {a}{b c - a d}}}{b^{2} x^{4} + 2 \, a b x^{2} + a^{2}}\right ) - 4 \, {\left (b^{2} d x^{3} + 2 \, a b d x\right )} \sqrt {d x^{2} + c}}{8 \, {\left (b^{4} d x^{2} + a b^{3} d\right )}}, \frac {{\left (3 \, a b c d - 4 \, a^{2} d^{2} + {\left (3 \, b^{2} c d - 4 \, a b d^{2}\right )} x^{2}\right )} \sqrt {\frac {a}{b c - a d}} \arctan \left (-\frac {{\left ({\left (b c - 2 \, a d\right )} x^{2} - a c\right )} \sqrt {d x^{2} + c} \sqrt {\frac {a}{b c - a d}}}{2 \, {\left (a d x^{3} + a c x\right )}}\right ) - {\left (a b c - 4 \, a^{2} d + {\left (b^{2} c - 4 \, a b d\right )} x^{2}\right )} \sqrt {d} \log \left (-2 \, d x^{2} + 2 \, \sqrt {d x^{2} + c} \sqrt {d} x - c\right ) + 2 \, {\left (b^{2} d x^{3} + 2 \, a b d x\right )} \sqrt {d x^{2} + c}}{4 \, {\left (b^{4} d x^{2} + a b^{3} d\right )}}, -\frac {2 \, {\left (a b c - 4 \, a^{2} d + {\left (b^{2} c - 4 \, a b d\right )} x^{2}\right )} \sqrt {-d} \arctan \left (\frac {\sqrt {-d} x}{\sqrt {d x^{2} + c}}\right ) - {\left (3 \, a b c d - 4 \, a^{2} d^{2} + {\left (3 \, b^{2} c d - 4 \, a b d^{2}\right )} x^{2}\right )} \sqrt {\frac {a}{b c - a d}} \arctan \left (-\frac {{\left ({\left (b c - 2 \, a d\right )} x^{2} - a c\right )} \sqrt {d x^{2} + c} \sqrt {\frac {a}{b c - a d}}}{2 \, {\left (a d x^{3} + a c x\right )}}\right ) - 2 \, {\left (b^{2} d x^{3} + 2 \, a b d x\right )} \sqrt {d x^{2} + c}}{4 \, {\left (b^{4} d x^{2} + a b^{3} d\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{4} \sqrt {c + d x^{2}}}{\left (a + b x^{2}\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 288 vs.
\(2 (124) = 248\).
time = 0.69, size = 288, normalized size = 1.92 \begin {gather*} \frac {\sqrt {d x^{2} + c} x}{2 \, b^{2}} + \frac {{\left (3 \, a b c \sqrt {d} - 4 \, a^{2} d^{\frac {3}{2}}\right )} \arctan \left (\frac {{\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{2} b - b c + 2 \, a d}{2 \, \sqrt {a b c d - a^{2} d^{2}}}\right )}{2 \, \sqrt {a b c d - a^{2} d^{2}} b^{3}} - \frac {{\left (b c \sqrt {d} - 4 \, a d^{\frac {3}{2}}\right )} \log \left ({\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{2}\right )}{4 \, b^{3} d} - \frac {{\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{2} a b c \sqrt {d} - 2 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{2} a^{2} d^{\frac {3}{2}} - a b c^{2} \sqrt {d}}{{\left ({\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{4} b - 2 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{2} b c + 4 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + c}\right )}^{2} a d + b c^{2}\right )} b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^4\,\sqrt {d\,x^2+c}}{{\left (b\,x^2+a\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________